filechoosernativewin32: Define MSC_VER at top of file
authorBenjamin Otte <otte@gnome.org>
Sat, 6 Feb 2016 03:24:39 +0000 (04:24 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 11 Feb 2016 02:44:47 +0000 (03:44 +0100)
The headers we include might include windows headers which define _MSC_VER already.

gtk/gtkfilechoosernativewin32.c

index 9e60e276d4460c5adfa7dcc8306c7e2aecd0731a..aa82216a65215bf809d4f167d496b62bba6b1ece 100644 (file)
 
 #include "config.h"
 
+/* Vista or newer */
+#define _WIN32_WINNT 0x0600
+#define WINVER _WIN32_WINNT
+#define NTDDI_VERSION NTDDI_VISTA
+#define COBJMACROS
+
 #include "gtkfilechoosernativeprivate.h"
 #include "gtknativedialogprivate.h"
 
 #include "gtkfilechooserentry.h"
 #include "gtkfilefilterprivate.h"
 
-/* Vista or newer */
-#define _WIN32_WINNT 0x0600
-#define WINVER _WIN32_WINNT
-#define NTDDI_VERSION NTDDI_VISTA
-#define COBJMACROS
-
 #include "win32/gdkwin32.h"
 #include <shlobj.h>
 #include <windows.h>